package com.sann.eduservice.entity.subject;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 但实体类来封装树形结构
 */
@Data
public class SubjectTree {
    private String id;
    private String title;
    private String pid;
    private List<SubjectTree> children = new ArrayList<>();
}
